package com.project.mall.service;


import com.project.mall.pojo.Address;
import com.project.mall.pojo.Orders;
import com.project.mall.pojo.Orderstate;
import com.project.mall.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ServiceC {

  User login(String phone);


  //用户注册
  boolean addNewUser(User user);

  int register(String phone);

  //个人中心页面

  User getAllbyphone( String Phone);

  public int getIdByPhone(String phone);

  boolean updateUser(User user);

  boolean updatepwd(User user);

  //查询地址
  List<Address> getAdressByuser(int userid);

  //添加用户地址
  boolean addAddress(Address address);

  boolean updateAddress(Address address);

  //更新商品id获取商品信息
  Address getaddressAllByAddID( int addid );

  List<Orders> getSelfrderby(int userid);

  List<Orderstate> getOrderstatebyuserid(@Param("userid") int userid);

  //新增订单信息
  int addorders(Orders orders);
}
